import com.qq.open.weibo.WeiBoAddT;
import com.qq.open.weibo.bean.param.WeiBoAddParamBean;
import com.qq.open.weibo.bean.result.WeiBoAddResultBean;


public class TestAddT {

	
	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		
		WeiBoAddParamBean paramBean = new WeiBoAddParamBean();

		paramBean.setAccessToken("138F0112CC9B350B8AE00899CB47D489");
		
		paramBean.setOpenId("2D78AAACEAF41021180BEAA2A47871B8");
		
		paramBean.setContent("测试来自！ for JavaSDK2.0");
		
		paramBean.setClientIp("116.3.11.0");
		
		paramBean.setLongitude("38.89103282648846");
		
		paramBean.setLatitude("121.640625");
		
		WeiBoAddT addT = new WeiBoAddT();
		
		WeiBoAddResultBean resultBean = addT.addT(paramBean);
		
		
		System.out.println(resultBean.getAddWeiBoId());
		System.out.println(resultBean.getAddWeiBoDate());
	}
}
